{% extends 'Base/main.content.lists.div.html.twig' %}{% import 'Base/list_item.twig' as listItem %}
{% block addBtn %}{% endblock %}
{% block delBtn %}{% endblock %}
{% block options %}
    <div class="menu-list">
        {% for key , classes in tools %}
            {% set default = "请选择" %}
            {% set classes = classes %}
            <div class="rule-single-select">
                <select name="cond[{{ key }}]" onchange="javascript:__doPostBack('searchCond','')" >
                    <option value="" {{app.request.get("cond")[key] is defined and app.request.get("cond")[key] == "" ? ' selected="selected"' : "" }} >{{ default }}</option>
                    {% for class in classes %}
                        <option
                                value="{{ class.id }}"
                                {{app.request.get("cond")[key] is defined and  app.request.get("cond")[key] == class.id ? ' selected="selected"' : "" }}
                                >{{ class.name }}</option>
                    {% endfor %}
                </select>
            </div>
        {% endfor %}
    </div>
{% endblock %}
{% block tableHead %}
    <tr>
        <th width="3%">选择</th>
        <th align="left">分组</th>
        <th align="left">账号</th>
        <th align="left">登录时间</th>
        <th align="left" width="30%">登录信息</th>
        <th align="left">密码是否异常</th>
        <th align="left" width="10%">注册时间</th>
        <th align="center" width="10%">管理</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>
            <td align="center">
                <span class="checkall" style="vertical-align:middle;">
                    <input lay-skin="primary" type="checkbox" name="ids[]" value="{{ Entity.UserLoginLog_id }}"/>
                </span>
            </td>
            <td align="left">{{ Entity.UserGroups_name }}</td>
            <td align="left">{{ Entity.UserLoginLog_userAccount }}</td>
            <td align="left">{{ Entity.UserLoginLog_loginTime | date("Y-m-d H:i:s")  }}</td>
            <td align="left">
                <p>REQUEST：{{ Entity.UserLoginLog_loginRequest  }}</p>
                <p>UA：{{ Entity.UserLoginLog_userAgent }}</p>
            </td>
            <td align="left">
                {{ Entity.UserLoginLog_passwordError == 1 ? "异常" : "-" }}
            </td>
            <td align="left">{{ Entity.User_addTime | date("Y-m-d H:i:s")  }}</td>
            <td align="center">
                {#a href="{{ path("PreEdit",{'id':Entity._id}) }}" class="layui-btn layui-btn-normal layui-btn-sm"><span class="fa fa-edit c13"></span></a>#}
                -
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}

